﻿namespace EFMLEditor.Pages.PropertyPages
{
    using System;
    using System.Windows.Forms;

    using EFMLEditor.Internal;

    public partial class BuildActions : UserControl
    {
        public BuildActions()
        {
            this.InitializeComponent();

            this.richTextBox1.Text = Global.Get("application_präbuildevent");
            this.richTextBox2.Text = Global.Get("application_postbuildevent");
        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {
            EFMLEditor.Application.isDirty = true;
            Global.Add("application_präbuildevent", this.richTextBox1.Text);
        }

        private void richTextBox2_TextChanged(object sender, EventArgs e)
        {
            EFMLEditor.Application.isDirty = true;
            Global.Add("application_postbuildevent", this.richTextBox2.Text);
        }
    }
}